import Login from './views/Login.vue'
import Login1 from './views/Login1.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav2/Page6.vue'
import Setted from './views/nav3/Setted.vue'
import echarts from './views/charts/echarts.vue'
import binder from './views/binder/binder.vue'
import returnCar from './views/returnCar/returenCar.vue'
import Department from './views/department/Department.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/login1',
        component: Login1,
        name: '',
        hidden: true
    },
    {
        path: '/binder',
        component: binder,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '维修单管理',
        iconCls: 'el-icon-setting',//图标样式class
        children: [
            { path: '/user', component: user, name: '客户维修单' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-setting',
        children: [
            { path: '/paytype/index', component: Page4, name: '支付管理' },
            { path: '/opt/index', component: Page5, name: '维修员' },
            { path: '/employee/index', component: Page6, name: '管理员' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '结算管理',
        iconCls: 'el-icon-setting',
        children: [
            { path: '/setted/index', component: Setted, name: '订单结算' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '还车管理',
        iconCls: 'el-icon-location-information',
        children: [
            { path: '/returnCar', component: returnCar, name: '还车情况' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '配件管理',
        iconCls: 'el-icon-setting',
        children: [
            { path: '/page9', component: echarts, name: '配件入库' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];
export default routes;